home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2007 December / PCWKCD1207B.iso / Blogowanie poza sfera / Flock 0.9.1.3 stable / flock-0.9.1.3.en-US.win32.exe / flock / res / detect / blogger.xml next >
Extensible Markup Language  |  2007-10-12  |  3KB  |  114 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <service name="blogger"
  3.          version="$Id: blogger.xml 13478 2007-07-19 19:45:26Z chris $"
  4.          xmlns="http://www.flock.com/web-detective#">
  5.  
  6.   <detect type="signup">
  7.     <url domain="google.com"><path contains="/accounts/NewAccount"/></url>
  8.     <form>
  9.       <xpath name="username" extract="value">
  10.         <![CDATA[//input[@name="Email"]]]>
  11.       </xpath>
  12.       <xpath name="password" extract="value">
  13.         <![CDATA[//input[@type="password"][@name="PasswdAgain"]]]>
  14.       </xpath>
  15.     </form>
  16.   </detect>  
  17.   
  18.   <detect type="login">
  19.     <url><host domain="google.com"/></url>
  20.     <form>
  21.       <xpath name="username" extract="value">
  22.         <![CDATA[//input[@id="Email"]]]>
  23.       </xpath>
  24.       <xpath name="password" extract="value">
  25.         <![CDATA[//input[@id="Passwd"]]]>
  26.       </xpath>
  27.     </form>
  28.   </detect>
  29.  
  30.   <!-- Old Blogger -->
  31.   <detect type="loggedin">
  32.     <conditions>
  33.       <url domain="blogger.com"/>
  34.       <document>
  35.         <xpath><![CDATA[//div[@id="header"]/div[@id="h2"]/div[@id="h3"]/p[@id="user"]]]></xpath>
  36.       </document>
  37.     </conditions>
  38.   </detect>
  39.  
  40.   <!-- Blogger beta -->
  41.   <detect type="loggedin">
  42.     <conditions>
  43.       <url domain="blogger.com"/>
  44.       <document>
  45.         <xpath><![CDATA[//div[@id="header"]/div[@id="h2"]/div[@id="h3"]/div[@id="global-info"]]]></xpath>
  46.       </document>
  47.     </conditions>
  48.   </detect>
  49.  
  50.   <detect type="accountinfo">
  51.     <conditions>
  52.       <url domain="blogger.com"/>
  53.       <xpath name="accountid">
  54.         <![CDATA[//div[@id='header']//div[@id='global-info']/span/text()]]>
  55.       </xpath>
  56.     </conditions>
  57.     <results>
  58.       <xpath name="accountid">
  59.         <![CDATA[//div[@id='header']//div[@id='global-info']/span/text()]]>
  60.       </xpath>
  61.       <xpath name="avatarURL" extract="attribute:src">
  62.         <![CDATA[//img[@alt='My Photo']]]>
  63.       </xpath>
  64.     </results>
  65.   </detect>
  66.  
  67. <!--  
  68.   <detect type="loggedin">
  69.     <conditions>
  70.       <url domain="google.com"><path contains="accounts"/></url>
  71.       <document>
  72.         <xpath><![CDATA[//table[1]/tbody/tr[1]/td/font/a[4]/text()[contains(.,"Sign Out")]]]></xpath>
  73.       </document>
  74.     </conditions>
  75.   </detect>
  76. -->
  77.   <detect type="loggedin">
  78.     <conditions>
  79.       <url domain="blogger.com"></url>
  80.       <document>
  81.         <regexp re1="username">
  82.           <![CDATA[/<a href="\/logout.g">/]]>
  83.         </regexp>
  84.       </document>
  85.     </conditions>
  86.   </detect>
  87.   
  88.   <detect type="accountinfo">
  89.     <conditions>
  90.       <url domain="google.com"><path contains="accounts"/></url>
  91.       <document>
  92.         <xpath name="accountid">
  93.           <![CDATA[//table[1]/tbody/tr[1]/td/font/b/text()]]>
  94.         </xpath>
  95.       </document>
  96.     </conditions>
  97.   </detect>
  98.     
  99.   <detect type="changepassword">
  100.     <url domain="google.com"><path contains="accounts"/></url>
  101.     <document>
  102.       <regexp re1="username">
  103.         <![CDATA[/getUserName\("([^"]*)"\)/]]>
  104.       </regexp>
  105.     </document>
  106.     <form>
  107.       <xpath name="password" extract="value">
  108.         <![CDATA[//input[@type="password"][@name="PasswdAgain"]]]>
  109.       </xpath>
  110.    </form>
  111.   </detect>
  112.  
  113. </service>
  114.